f = open("xxx.txt", "w")

f.write("hahaha")

f.write("\nttttt")

f.close()